#include "TimeController.h"

TimeController::TimeController()
:m_first(true), m_startTime(0)
{}

TimeController::~TimeController(){}

void TimeController::doUpdate()
{
	if(m_first)
	{
		m_startTime = timeGetTime();
		m_first = false;
	}

	long t = timeGetTime() - m_startTime;
	setValue(t);
}